package org.wltea.analyzer.sample;

import java.io.IOException;
import java.io.StringReader;

import org.wltea.analyzer.core.IKSegmenter;
import org.wltea.analyzer.core.Lexeme;

public class Main {

	public static void main(String[] args) throws IOException {
		StringReader re = new StringReader("");
		IKSegmenter ik = new IKSegmenter(re, true);
		Lexeme lex = null;
		while ((lex = ik.next()) != null) {
			System.out.print(lex.getLexemeText() + "|");
		}
	}

}
